
package com.idealighter.game.games.xzdd.handler;

import com.google.inject.Inject;

import com.idealighter.game.core.annotation.ReqMsgHandler;
import com.idealighter.game.games.xzdd.manager.XzddMgr;
import com.idealighter.game.games.xzdd.message.ReqExchangeMsg;
import com.idealighter.game.message.core.ReqMessage;
import com.idealighter.game.message.core.ResMessage;
import com.idealighter.game.player.struct.Player;
import com.idealighter.game.server.handler.ReqMessageHandler;


@ReqMsgHandler(519117)
public class ReqExchangeHandler implements ReqMessageHandler {

  @Inject
  private XzddMgr xzddMgr;

  @Override
  public ResMessage action(Player player, ReqMessage message) {
    ReqExchangeMsg msg = (ReqExchangeMsg) message;
    xzddMgr.exchange(player, msg.getMjs());

    return null;
  }
}
